package bibbletex.views;

public class CollaborationView {
	public static String public_link(bibbletex.models.Collaboration c) {
		if (c != null)
			return new String("/collaboration/show.jsp?cid=") + c.getPublic_id();
		else
			return null;
	}
	
	public static String private_link(bibbletex.models.Collaboration c) {
		if (c != null)
			return new String("/collaboration/show.jsp?cid=") + c.getId();
		else
			return null;
	}
	
	public static String possible_action(boolean is_editable) {
		if (is_editable)
			return new String("Add");
		else
			return new String("Suggest");
	}
}
